cmake_minimum_required(VERSION 3.24)

project(CudaTest LANGUAGES CXX CUDA)

set(CMAKE_CUDA_STANDARD 17)

include_directories(${PROJECT_SOURCE_DIR}/)
include_directories(${PROJECT_SOURCE_DIR}/src/)
include_directories("C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8/include/")

file(GLOB_RECURSE SRCS ${PROJECT_SOURCE_DIR}/src/*.cpp
                       ${PROJECT_SOURCE_DIR}/src/*.cu)

add_executable(CudaTest main.cpp ${SRCS})

set_target_properties(CudaTest PROPERTIES
                      CUDA_SEPARABLE_COMPILATION ON)
